//For map..

        var myCenter = new google.maps.LatLng(10.833043245152712,
        		106.7271276711108);

        function initialize() {

            // apply location marker to centre on
            var mapProp = {
                center : myCenter,
                zoom : 10,
                mapTypeId : google.maps.MapTypeId.ROADMAP
            };

            var map = new google.maps.Map(document
                .getElementById("googleMap"), mapProp);

            var marker = new google.maps.Marker({
                position : myCenter,
                title : 'My centre'
            });

            if ($('#map_empty').val() == 0) {
                var marker = new google.maps.Marker({});
            }

            marker.setMap(map);
            var infowindow = new google.maps.InfoWindow({
                content:"<img width='100px' height='100px' src='" + $('#profile_user').attr('src')+ "' />"
            });

            google.maps.event.addListener(marker, 'click', function() {
                infowindow.open(map,marker);
            });


            google.maps.event.trigger(map, 'resize');
            google.maps.event.addListener(map, "click", function(event) {
                var lat = event.latLng.lat();
                var lng = event.latLng.lng();
                $('#coord_x').val(lat);
                $('#coord_y').val(lng)
            });
        }

